package com.fyt.dto.pasture;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AddPastureDTO implements Serializable {

    private Integer pId;
    @ApiModelProperty("牧场名称，最长100")
    @NotEmpty
    private String pastureName;

    @ApiModelProperty("场地规模，不小于100，不高于999999")
    @NotNull
    private Long venueSize;

    @ApiModelProperty("养殖规模，最大999999")
    @NotNull
    private Long farmSize;

    @ApiModelProperty("省")
    @NotEmpty
    private String province;

    @ApiModelProperty("市")
    @NotEmpty
    private String city;

    @ApiModelProperty("区")
    @NotEmpty
    private String district;

    @ApiModelProperty("详细地址")
    @NotEmpty
    private String address;

    @ApiModelProperty("经度")
    @NotNull
    private BigDecimal longitude;

    @ApiModelProperty("纬度")
    @NotNull
    private  BigDecimal latitude;

    @ApiModelProperty("字典值编号")
    private Integer id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("状态，0-启用，1-禁用")
    private Integer enable;
}
